package main

import (
	//"fmt"
	"time"
)

//var pipe chan int // 全局变量

func add(a int, b int,pipe chan int) int {
	var sum int
	sum = a + b
	pipe <- sum
	time.Sleep(50 * time.Second)
	return sum
}
